// JavaScript Document
var nav_num;
$(document).ready(function(){
//    nav-li hover e
    $('.nav-main>li[id]').hover(function(){
       /*图标向上旋转*/
        $(this).children().children().removeClass().addClass('hover-up');
        /*下拉框出现*/
        var Obj = $(this).attr('id');
        nav_num = Obj.substring(3, Obj.length);
        //$('#box-'+nav_num).slideDown(300);
        $('#box-'+nav_num).show();
    },function(){
    	/*下拉框消失*/
    	$('#box-'+nav_num).hide();
        /*图标向下旋转*/
        $(this).children().children().removeClass().addClass('hover-down');
    });
//    hidden-box hover e
    $('.hidden-box').hover(function(){
    	//$(this).show();
    	$('#box-'+nav_num).show();
        /*保持图标向上*/
        $('#li-'+nav_num).children().children().removeClass().addClass('hover-up');
    },function(){
        //$(this).slideUp(1);
    	$('#box-'+nav_num).hide();
        $('#li-'+nav_num).children().children().removeClass().addClass('hover-down');
    });
});
